<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path=request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>专辑列表</title>
<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
<script src="<%=path%>/js/albumdelete.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="<%=path%>/css/list.css"/>

</head>
<body>
<h3>专辑列表</h3>

<form action="<%=path%>/album/albumlist.dch" method="post" name="pageForm">
  	查询关键字:<input type="text" name="keyword" value="${keyword}"/><input type="button" value="查询" onclick="javascrip:pageForm.submit();"/>
  			 
  	<input type="button" value="上一页" onclick="javascrip:currentPage.value='${currentPage-1}';pageForm.submit();" ${result.page.hasPrePage?'':'disabled'}/>
  	<input type="button" value="下一页" onclick="javascrip:currentPage.value='${currentPage+1}';pageForm.submit();" ${result.page.hasNextPage?'':'disabled'}/>
  	<input type="hidden" name="currentPage" value="1"/>
  	转到:<input type="text" name="toPage" value=""/><input type="button" size="2" value="跳转" onclick="javascrip:currentPage.value=toPage.value;pageForm.submit();"/>
</form>
<br/>
共${result.page.totalRecords}条记录，分${result.page.totalPage}页，当前第${result.page.currentPage}页
<table class="datalist" id="member">
	<tr>
		<th scope="col">ID</th>
		<th scope="col">名字</th>
		<th scope="col">统计</th>
        <th scope="col">推荐</th>
        <th scope="col">锁定</th>
        <th scope="col">更多</th>
        <th scope="col">视频</th>
        <th scope="col">发布时间</th>
        <th scope="col" colspan='3'>操作</th>
	</tr>
	<s:iterator value="result.list" id="a">
		<tr id="${a.albumid}">
			<td>${a.albumid}</td>
			<td><span class="info">${fn:substring(a.albumname,0,15)}<span class="minfo">${a.albumname}</span></span></td>
			<td>
				<span class="info">详情
					<span class="minfo">
						点击：${a.click}<br/>
						支持：${a.support}<br/>
						反对：${a.oppose}<br/>
					</span>
				</span>
			</td>
			<td>${a.recommend}</td>
			<td>${a.islock}</td>
			<td>
				<span class="info">详情
					<span class="minfo">
						分类：<br/>
						集数：${a.count}<br/>
						主演：${a.actors}<br/>
						图片：${a.picturepath}<br/>
						上映：${a.comeoutdate}
					</span>
				</span>
			</td>
			<td>
				<a href="<%=path%>/album/videolist.dch?id=${a.albumid}">查看</a>
			</td>
			<td><span class="info">${fn:substring(a.publishtime,0,10)}<span class="minfo">${a.publishtime}</span></span></td>
			
			<td>
				<a href="<%=path%>/album/toupdate.dch?id=${a.albumid}&currentPage=${result.page.currentPage}">修改</a>&nbsp;&nbsp;
				<a href="#" onclick="deletem(${a.albumid},${result.page.currentPage})">删除</a>				
			</td>
		</tr>
	</s:iterator>
</table>
</body>
</html>